/***
 * @Author: lwt
 * @description: 这里是描述
 */

import { createApp } from 'vue'
import App from './App.vue'
import ElementPlus from 'element-plus'
import 'element-plus/dist/index.css'
import zhCn from 'element-plus/es/locale/lang/zh-cn'; // 引入中文语言包
// import router from './router'
import store from './store'
import { installPlugins } from '../src/plugins'
//import { installStore } from '../src/store'
import { installRouter } from '../src/router'
import throttleDirective from "./directives/throttle";

const app = createApp(App).use(store)
// 全局引入自定义指令--按钮防抖
app.directive("throttle", throttleDirective);
app.use(ElementPlus, { locale: zhCn })

// 安装插件
installPlugins(app)
//安装vuex
//nstallStore(app)
//安装路由
installRouter(app)
app.mount('#app')
